package com.zhkj.txg.module.find.entity

import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse

data class FindListResponse(
    val data: FindEntity
) : BaseResponse()

data class FindEntity(
    val isMember: Boolean,
    var list: MutableList<FindArticleEntity> = mutableListOf()
) {
    var hasMore = true
    var isLoadMore = false
}

data class FindArticleEntity(
    val id: Int,
    val content: String = "",
    val images: String = "",
    val visit: Int = 0,
    val user: FindUserEntity? = null,
    val goods: FindGoodsEntity? = null
) {
    var width: Int = -1
    var height: Int = -1
}

data class FindUserEntity(
    val id: Int,
    val nickname: String,
    val avatar: String
)

data class FindGoodsEntity(
    val id: Int,
    @SerializedName("goods_name")
    val goodsName: String = "",
    val image: String = "",
    @SerializedName("market_price")
    val marketPrice: String = "",
    val price: String = "",
    @SerializedName("share_earn")
    val shareEarn: String = ""
)